const baseUrl = 'http://testapi2.xunyinjiaoyou.com'
const state = {
  fileUpload: baseUrl + '/record/uploadImg',
  roomlist: {}
}
const mutations = {
  ROOM_LIST: (state, roomlist) => {
    state.roomlist = roomlist
  },
  delet_LIST: (state) => {
    state.roomlist = {}
  }
}

const actions = {
  roomlist({ commit }, roomlist) {
    commit('ROOM_LIST', roomlist)
  },
  deleteroomlist({ commit }) {
    commit('delet_LIST')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
